import Header from '@editorjs/header'
import NewsBlock from '@/components/Editor/blocks.vue'

export const blockConfig = {
  tools: {
    header: {
      class: Header,
      config: {
        placeholder: '输入标题...',
        levels: [2, 3, 4],
        defaultLevel: 2,
      },
    },
    news: {
      class: NewsBlock,
      inlineToolbar: true,
    },
  },
  defaultData: {
    blocks: [
      {
        type: 'header',
        data: {
          text: '学校官网配置平台',
          level: 2,
        },
      },
    ],
  },
}
